package com.example.ass7.sprite;

import java.awt.Color;

import biuoop.DrawSurface;

import com.example.ass7.level.GameLevel;

/**
 * @author Meirav Ben Izhak
 */
public class LevelNameIndicator implements Sprite {

    private final String levelName;

    /**
     * @param levelName
     *            levelName
     */
    public LevelNameIndicator(
        String levelName) {
        this.levelName = levelName;
    }

    @Override
    public void drawOn(DrawSurface d) {
        d.setColor(Color.BLACK);
        d.drawText(500,
                20,
                String.format("Level Name: %s",
                        this.levelName),
                15);
    }

    @Override
    public void timePassed(double dt) {
        // empty
    }

    /**
     * @param addTo
     *            addTo
     */
    public void addToGame(GameLevel addTo) {
        addTo.addSprite(this);
    }

}
